#ifndef RECTPATCHOBJECT_H
#define RECTPATCHOBJECT_H
#include "StompedReality/Core.h"
#include "StompedReality/Math/Vector2.h"
#include "StomperLib/Objects/EditorObjectInfo.h"

StaticRegDummy ( RectPatchObject )

namespace StomperLib {
struct RectPatchObjectReg
{
  static int registeType( );
};
class RectPatchObject : public StomperLib::EditorObjectInfo
{
 public:

  unsigned PatchID;
  unsigned TextureID;
  StompedReality::Math::Vector2 Pos;
  StompedReality::Math::Vector2 Size;
  std::string TextureFile;

 public:

  RectPatchObject( );
  ~RectPatchObject( );

  void Draw( );
  char* GetDataPointer( ) {
    return (char*) this;
  }

  bool IntersectsWithMouse( StompedReality::Math::Vector2 mousePos );

  void Translate( StompedReality::Math::Vector2 translation );
};

}
#endif // ifndef RECTPATCHOBJECT_H